from setuptools import setup, find_packages
from pathlib import Path

# 读取README文件
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")

# 版本信息
VERSION = "0.1.0"

# 依赖列表
INSTALL_REQUIRES = [
    "streamlit>=1.24.0",
    "requests>=2.31.0",
    "python-dotenv>=1.0.0",
    "pytest>=7.4.0",
    "pytest-asyncio>=0.21.1",
    "pytest-mock>=3.11.1"
]

# 开发依赖
DEV_REQUIRES = [
    "pytest>=7.0.0",
    "black>=23.0.0",
    "flake8>=6.0.0",
    "mypy>=1.0.0",
    "pytest-cov>=4.1.0",
    "pytest-asyncio>=0.23.0",
]

setup(
    name="ollama-chat",
    version=VERSION,
    packages=find_packages(),
    install_requires=INSTALL_REQUIRES,
    extras_require={
        'dev': DEV_REQUIRES,
    },
    author="Your Name",
    author_email="your.email@example.com",
    description="一个基于Ollama的聊天应用",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/yourusername/ollama-chat",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
    ],
    python_requires=">=3.8",
    include_package_data=True,
    package_data={
        '': [
            'assets/styles/*.css',
            'assets/styles/themes/*.css',
            'assets/images/*'
        ],
    },
    entry_points={
        'console_scripts': [
            'ollama-chat=chat_app:main',
        ],
    },
    project_urls={
        "Bug Reports": "https://github.com/yourusername/ollama-chat/issues",
        "Source": "https://github.com/yourusername/ollama-chat",
        "Documentation": "https://github.com/yourusername/ollama-chat/docs",
    },
) 